# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=lfi-sploiter
pkgver=1.0
pkgrel=6
groups=('blackarch' 'blackarch-webapp' 'blackarch-fuzzer'
        'blackarch-exploitation')
pkgdesc='This tool helps you exploit LFI (Local File Inclusion) vulnerabilities. Post discovery, simply pass the affected URL and vulnerable parameter to this tool. You can also use this tool to scan a URL for LFI vulnerabilities.'
arch=('any')
url='http://packetstormsecurity.com/files/96056/Simple-Local-File-Inclusion-Exploiter-1.0.html'
license=('custom:unknown')
depends=('python2' 'python2-httplib2')
source=("$pkgname::https://dl.packetstormsecurity.net/UNIX/scanners/lfi_sploiter.py.txt")
sha512sums=('2bc089135c1fabf789d502bd541ab856a4084be7288f6f4dc6f2ce2dc946ac521eff8775382cba9cd802cb5497ff745f7709ec4b5059bf4c3c948c14aafd1026')

prepare() {
  sed -i 's|/usr/bin/python|/usr/bin/python2|' $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

